package com.jrx.anytxn.transaction.job.autoPayment.step;

import com.jrx.anytxn.transaction.entity.BtAutoPaymentList;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.batch.MyBatisPagingItemReader;

/**
 * 按客户级扣款批扣准备reader
 *
 * @author : zhenghaopu
 * 2019/11/22
 */
public class AutoPaymentPreReader extends MyBatisPagingItemReader<BtAutoPaymentList> {


    public AutoPaymentPreReader(SqlSessionFactory sqlSessionFactory, Integer pagesize){
        setSaveState(false);
        setPageSize(pagesize);
        setSqlSessionFactory(sqlSessionFactory);
        setQueryId("com.jrx.anytxn.transaction.mapper.ext.ExtBtAutoPaymentListMapper.selectAllForBatch");
    }
}
